python socket
最初にここを読むのが良さそう
アドレスファミリ(ip4,ip6, unix, inet)、ソケットタイプ(tcp,udp)
上記でイメージしてから、document読む
socket families
socket addresses
AF_UNIX, AF_INET(host, port), AF_INET6(host, port, flowinfo, scopeid)
AF_NETLINK(pid, groups)
AF_BLUETOOTH
BTPROTO_L2CAP, BTRPROTO_REFCOMM, BTRPROTO_HCI
AF_ALG, AF_VSOCK, AF_PACKET
module contents
Exceptions
socket.error, socket.herror, socket.gaierror(address-related), socket.timeout
Constants
Funtions
Creating sockets
socket.socket(family=AF_INET, type=SOCK_STREAM, proto=0, fileno=None)
other functions
socket objecgts
Notes on socket timeouts
Timeouts and the connect method
TImeouts and the accept methos
Example